#:kivy 1.6.0
#:import DisableableButton ui.disableable_button.DisableableButton
#:import FittableButton ui.fittable_widgets.FittableButton
#:import FittableLabel ui.fittable_widgets.FittableLabel

<WelcomeScreen>:
    quick_game_button: quick_game_button
    load_button: load_button
    join_button: join_button
    orientation: 'vertical'
    DisableableButton:
        id: quick_game_button
        coef: 0.7
        color_name: 'green'
        text: _('Quick game')
        on_release: root.quick_game()
    FittableButton:
        text: _('Start game')
        on_release: root.start_game()
    FittableLabel:
        coef: 0.7
        color: 1, 1, 1, 1
        height: '50dp'
        text: _('The Hat')
        font_size: 32
    BoxLayout:
        orientation: 'horizontal'
        DisableableButton:
            id: join_button
            text: _('Join game')
            on_release: root.join()
        DisableableButton:
            id: load_button
            text: _('Load game')
            on_release: root.load_game()
    FittableButton:
        coef: 0.5
        text: _('Rules')
        on_release: root.open_rules()
